package com.xzg.mission.Service;

import com.xzg.common.exception.XZGException;
import com.xzg.common.page.PageQueryBean;
import com.xzg.common.resp.APIResult;
import com.xzg.common.vo.QueryCondition;
import com.xzg.middleTable.entity.Category;
import com.xzg.middleTable.entity.Tmission;
import com.xzg.mission.entity.Mission;

import java.text.ParseException;

public interface MissionService {
    /**
     *@Author Ye
     *Date 2018-03-08 17:12
     *@Description 查询所有任务
     */
    PageQueryBean listMission(QueryCondition condition);

    /**
     *@Author Ye
     *Date 2018-03-08 17:12
     *@Description 创建任务
     */
    int createMission(Mission mission);

    /**
     *@Author Ye
     *Date 2018-03-08 17:13
     *@Description 查看任务不查看内容
     */
    PageQueryBean missionPart(QueryCondition condition) throws ParseException;

    /**
     *@Author Ye
     *Date 2018-03-08 17:13
     *@Description 删除任务
     */
    void deleteMission(Long id);

    /**
     *@Author Ye
     *Date 2018-03-08 17:13
     *@Description 查看任务详情
     */
    Mission findOne(Long id) throws XZGException;

    APIResult inserCategory(Category category);

    APIResult categoryMission(Tmission mission);

    APIResult categoryAll();

    APIResult deleteCategory(Long categoryCid);

    PageQueryBean findTMission(QueryCondition condition);

    APIResult updateTMission(Tmission tmission);

    APIResult deleteTMission(Tmission tmission);
}
